<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class View {
	
	public $data;

	public function __construct(){
		$this->CI =& get_instance();
		$this->data['portlet_type'] = 'View';
	}
	
	public function set_portlet_title($title){
		$this->data['portlet_title'] = $title;
	}
	
	public function set_menu($menu){
		$this->data['menu'] = $menu;
	}
	
	public function set_portlet_style($style){
		$this->data['portlet_style'] = $style;
	}
	
	public function set_view($view){
		$this->data['view'] = $view;
	}

	public function show($ext_data){
		$this->data = array_merge($this->data, $ext_data);
		$this->CI->load->view('main', $this->data);
	}
}